package cn.powertime.evaluation.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description="新闻对象")
public class WebRespNewsListVo implements Serializable {

    @ApiModelProperty(value="ID",name="id")
    private Long id;
    @ApiModelProperty(value="标题",name="title")
    private String title;
    @ApiModelProperty(value="简介",name="introduction")
    private String introduction;
    @ApiModelProperty(value="内容",name="content")
    private String content;
    @ApiModelProperty(value="浏览量",name="pv")
    private Long pv;
    @ApiModelProperty(value="发表时间",name="createDate")
    @JsonFormat(pattern="yyyy-MM-dd")
    private LocalDateTime createDate;
    @ApiModelProperty(value="图片",name="img")
    private String img;


}
